//
//  LSZCheckDailyGospelValuesTableViewCell.m
//  JKFuYinProject
//
//  Created by 九酷 on 2018/6/7.
//  Copyright © 2018年 LC. All rights reserved.
//

#import "LSZCheckDailyGospelValuesTableViewCell.h"

@implementation LSZCheckDailyGospelValuesTableViewCell
-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.imageViewFirstDay = [[UIImageView alloc]init];
        [self.imageViewFirstDay.layer setMasksToBounds:YES];
        [self addSubview:self.imageViewFirstDay];
        self.labelFirstValue = [[UILabel alloc]init];
        self.labelFirstValue.textAlignment = NSTextAlignmentCenter;
        [self.imageViewFirstDay addSubview:self.labelFirstValue];

        self.labelFirstDay = [[UILabel alloc]init];
        self.labelFirstDay.textColor = lightColor;
        self.labelFirstDay.textAlignment = NSTextAlignmentCenter;
        [self addSubview:self.labelFirstDay];

        float ratioValue = ScreenWidth/375;
        NSLog(@"%f>>>>>>>>",ratioValue);
        self.imageViewFirstDay.frame = CGRectMake(15*ratioValue,15,44*ratioValue ,44*ratioValue);
        self.labelFirstValue.frame = CGRectMake(0, 12,self.imageViewFirstDay.frame.size.width,15);

        self.imageViewSecondDay = [[UIImageView alloc]init];
        [self.imageViewSecondDay.layer setMasksToBounds:YES];
        [self addSubview:self.imageViewSecondDay];
        self.labelSecondValue = [[UILabel alloc]init];
        self.labelSecondValue.textAlignment = NSTextAlignmentCenter;
        [self.imageViewSecondDay addSubview:self.labelSecondValue];

        self.labelSecondDay = [[UILabel alloc]init];
        self.labelSecondDay.textColor = lightColor;
        self.labelSecondDay.textAlignment = NSTextAlignmentCenter;
        [self addSubview:self.labelSecondDay];
        self.imageViewSecondDay.frame = CGRectMake(CGRectGetMaxX(self.imageViewFirstDay.frame)+6*ratioValue,15,44*ratioValue ,44*ratioValue);
        self.labelSecondValue.frame = CGRectMake(0, 12,self.imageViewSecondDay.frame.size.width,15);

        self.imageViewThirdDay = [[UIImageView alloc]init];
        [self.imageViewThirdDay.layer setMasksToBounds:YES];
        [self addSubview:self.imageViewThirdDay];
        self.labelThirdValue = [[UILabel alloc]init];
        self.labelThirdValue.textAlignment = NSTextAlignmentCenter;
        [self.imageViewThirdDay addSubview:self.labelThirdValue];
        self.labelThirdDay = [[UILabel alloc]init];
        self.labelThirdDay.textColor = lightColor;
        self.labelThirdDay.textAlignment = NSTextAlignmentCenter;
        [self addSubview:self.labelThirdDay];
        self.imageViewThirdDay.frame = CGRectMake(CGRectGetMaxX(self.imageViewSecondDay.frame)+6*ratioValue,15,44*ratioValue ,44*ratioValue);
        self.labelThirdValue.frame = CGRectMake(0, 12,self.imageViewThirdDay.frame.size.width,15);

        self.imageViewFourthDay = [[UIImageView alloc]init];
        [self.imageViewFourthDay.layer setMasksToBounds:YES];
        [self addSubview:self.imageViewFourthDay];
        self.labelFourthValue = [[UILabel alloc]init];
        self.labelFourthValue.textAlignment = NSTextAlignmentCenter;
        [self.imageViewFourthDay addSubview:self.labelFourthValue];
        self.labelFourthDay = [[UILabel alloc]init];
        self.labelFourthDay.textColor = lightColor;
        self.labelFourthDay.textAlignment = NSTextAlignmentCenter;
        [self addSubview:self.labelFourthDay];
        self.imageViewFourthDay.frame = CGRectMake(CGRectGetMaxX(self.imageViewThirdDay.frame)+6*ratioValue,15,44*ratioValue ,44*ratioValue);
        self.labelFourthValue.frame = CGRectMake(0, 12,self.imageViewFourthDay.frame.size.width,15);


        self.imageViewFifthDay = [[UIImageView alloc]init];
        [self.imageViewFifthDay.layer setMasksToBounds:YES];
        [self addSubview:self.imageViewFifthDay];
        self.labelFifthValue = [[UILabel alloc]init];
        self.labelFifthValue.textAlignment = NSTextAlignmentCenter;
        [self.imageViewFifthDay addSubview:self.labelFifthValue];
        self.labelFifthDay = [[UILabel alloc]init];
        self.labelFifthDay.textColor = lightColor;
        self.labelFifthDay.textAlignment = NSTextAlignmentCenter;
        [self addSubview:self.labelFifthDay];
        self.imageViewFifthDay.frame = CGRectMake(CGRectGetMaxX(self.imageViewFourthDay.frame)+6*ratioValue,15,44*ratioValue ,44*ratioValue);
        self.labelFifthValue.frame = CGRectMake(0, 12,self.imageViewFifthDay.frame.size.width,15);


        self.imageViewSixthDay = [[UIImageView alloc]init];
        [self.imageViewSixthDay.layer setMasksToBounds:YES];
        [self addSubview:self.imageViewSixthDay];
        self.labelSixthValue = [[UILabel alloc]init];
        self.labelSixthValue.textAlignment = NSTextAlignmentCenter;
        [self.imageViewSixthDay addSubview:self.labelSixthValue];
        self.labelSixthDay = [[UILabel alloc]init];
        self.labelSixthDay.textColor = lightColor;
        self.labelSixthDay.textAlignment = NSTextAlignmentCenter;
        [self addSubview:self.labelSixthDay];
        self.imageViewSixthDay.frame = CGRectMake(CGRectGetMaxX(self.imageViewFifthDay.frame)+6*ratioValue,15,44*ratioValue ,44*ratioValue);
        self.labelSixthValue.frame = CGRectMake(0, 12,self.imageViewSixthDay.frame.size.width,15);

        self.imageViewSeventhDay = [[UIImageView alloc]init];
        [self.imageViewSeventhDay.layer setMasksToBounds:YES];
        [self addSubview:self.imageViewSeventhDay];
        self.labelSeventhValue = [[UILabel alloc]init];
        self.labelSeventhValue.textAlignment = NSTextAlignmentCenter;
        [self.imageViewSeventhDay addSubview:self.labelSeventhValue];
        self.labelSeventhDay = [[UILabel alloc]init];
        self.labelSeventhDay.textColor = lightColor;
        self.labelSeventhDay.textAlignment = NSTextAlignmentCenter;
        [self addSubview:self.labelSeventhDay];
        self.imageViewSeventhDay.frame = CGRectMake(CGRectGetMaxX(self.imageViewSixthDay.frame)+6*ratioValue,15,44*ratioValue ,44*ratioValue);
        self.labelSeventhValue.frame = CGRectMake(0, 12,self.imageViewSeventhDay.frame.size.width,15);

        if (ScreenWidth == 320) {
            //5
            self.labelFirstDay.font = FONT_(10.5);
            self.labelSecondDay.font = FONT_(10.5);
            self.labelThirdDay.font = FONT_(10.5);
            self.labelFourthDay.font = FONT_(10.5);
            self.labelFifthDay.font = FONT_(10.5);
            self.labelSixthDay.font = FONT_(10.5);
            self.labelSeventhDay.font = FONT_(10.5);

            self.labelFirstValue.font = FONT_(10.5);
            self.labelSecondValue.font = FONT_(10.5);
            self.labelThirdValue.font = FONT_(10.5);
            self.labelFourthValue.font = FONT_(10.5);
            self.labelFifthValue.font = FONT_(10.5);
            self.labelSixthValue.font = FONT_(10.5);
            self.labelSeventhValue.font = FONT_(10.5);

            self.labelFirstDay.frame = CGRectMake(15*ratioValue, CGRectGetMaxY(self.imageViewFirstDay.frame)+10, 44*ratioValue, 14);
            self.labelSecondDay.frame = CGRectMake(CGRectGetMinX(self.imageViewSecondDay.frame), CGRectGetMaxY(self.imageViewSecondDay.frame)+10, 44*ratioValue, 14);
            self.labelThirdDay.frame = CGRectMake(CGRectGetMinX(self.imageViewThirdDay.frame), CGRectGetMaxY(self.imageViewThirdDay.frame)+10, 44*ratioValue, 14);
            self.labelFourthDay.frame = CGRectMake(CGRectGetMinX(self.imageViewFourthDay.frame), CGRectGetMaxY(self.imageViewFourthDay.frame)+10, 44*ratioValue, 14);
            self.labelFifthDay.frame = CGRectMake(CGRectGetMinX(self.imageViewFifthDay.frame), CGRectGetMaxY(self.imageViewFifthDay.frame)+10, 44*ratioValue, 14);
            self.labelSixthDay.frame = CGRectMake(CGRectGetMinX(self.imageViewSixthDay.frame), CGRectGetMaxY(self.imageViewSixthDay.frame)+10, 44*ratioValue, 14);
            self.labelSeventhDay.frame = CGRectMake(CGRectGetMinX(self.imageViewSeventhDay.frame), CGRectGetMaxY(self.imageViewSeventhDay.frame)+10, 44*ratioValue, 14);

        }else if(ScreenWidth == 375){
            // 6 7
            self.labelFirstDay.font = FONT_(11);
            self.labelSecondDay.font = FONT_(11);
            self.labelThirdDay.font = FONT_(11);
            self.labelFourthDay.font = FONT_(11);
            self.labelFifthDay.font = FONT_(11);
            self.labelSixthDay.font = FONT_(11);
            self.labelSeventhDay.font = FONT_(11);

            self.labelFirstValue.font = FONT_(11);
            self.labelSecondValue.font = FONT_(11);
            self.labelThirdValue.font = FONT_(11);
            self.labelFourthValue.font = FONT_(11);
            self.labelFifthValue.font = FONT_(11);
            self.labelSixthValue.font = FONT_(11);
            self.labelSeventhValue.font = FONT_(11);

            self.labelFirstDay.frame = CGRectMake(CGRectGetMinX(self.imageViewFirstDay.frame), CGRectGetMaxY(self.imageViewFirstDay.frame)+10, 44*ratioValue, 14);
            self.labelSecondDay.frame = CGRectMake(CGRectGetMinX(self.imageViewSecondDay.frame), CGRectGetMaxY(self.imageViewSecondDay.frame)+10, 44*ratioValue, 14);
            self.labelThirdDay.frame = CGRectMake(CGRectGetMinX(self.imageViewThirdDay.frame), CGRectGetMaxY(self.imageViewThirdDay.frame)+10, 44*ratioValue, 14);
            self.labelFourthDay.frame = CGRectMake(CGRectGetMinX(self.imageViewFourthDay.frame), CGRectGetMaxY(self.imageViewFourthDay.frame)+10, 44*ratioValue, 14);
            self.labelFifthDay.frame = CGRectMake(CGRectGetMinX(self.imageViewFifthDay.frame), CGRectGetMaxY(self.imageViewFifthDay.frame)+10, 44*ratioValue, 14);
            self.labelSixthDay.frame = CGRectMake(CGRectGetMinX(self.imageViewSixthDay.frame), CGRectGetMaxY(self.imageViewSixthDay.frame)+10, 44*ratioValue, 14);
            self.labelSeventhDay.frame = CGRectMake(CGRectGetMinX(self.imageViewSeventhDay.frame), CGRectGetMaxY(self.imageViewSeventhDay.frame)+10, 44*ratioValue, 14);

        }else {
            //plus
            self.labelFirstDay.font = FONT_(11.5);
            self.labelSecondDay.font = FONT_(11.5);
            self.labelThirdDay.font = FONT_(11.5);
            self.labelFourthDay.font = FONT_(11.5);
            self.labelFifthDay.font = FONT_(11.5);
            self.labelSixthDay.font = FONT_(11.5);
            self.labelSeventhDay.font = FONT_(11.5);

            self.labelFirstValue.font = FONT_(11.5);
            self.labelSecondValue.font = FONT_(11.5);
            self.labelThirdValue.font = FONT_(11.5);
            self.labelFourthValue.font = FONT_(11.5);
            self.labelFifthValue.font = FONT_(11.5);
            self.labelSixthValue.font = FONT_(11.5);
            self.labelSeventhValue.font = FONT_(11.5);

            self.labelFirstDay.frame = CGRectMake(CGRectGetMinX(self.imageViewFirstDay.frame), CGRectGetMaxY(self.imageViewFirstDay.frame)+10, 44*ratioValue, 16);
            self.labelSecondDay.frame = CGRectMake(CGRectGetMinX(self.imageViewSecondDay.frame), CGRectGetMaxY(self.imageViewSecondDay.frame)+10, 44*ratioValue, 16);
            self.labelThirdDay.frame = CGRectMake(CGRectGetMinX(self.imageViewThirdDay.frame), CGRectGetMaxY(self.imageViewThirdDay.frame)+10, 44*ratioValue, 16);
            self.labelFourthDay.frame = CGRectMake(CGRectGetMinX(self.imageViewFourthDay.frame), CGRectGetMaxY(self.imageViewFourthDay.frame)+10, 44*ratioValue, 16);
            self.labelFifthDay.frame = CGRectMake(CGRectGetMinX(self.imageViewFifthDay.frame), CGRectGetMaxY(self.imageViewFifthDay.frame)+10, 44*ratioValue, 16);
            self.labelSixthDay.frame = CGRectMake(CGRectGetMinX(self.imageViewSixthDay.frame), CGRectGetMaxY(self.imageViewSixthDay.frame)+10, 44*ratioValue, 16);
            self.labelSeventhDay.frame = CGRectMake(CGRectGetMinX(self.imageViewSeventhDay.frame), CGRectGetMaxY(self.imageViewSeventhDay.frame)+10, 44*ratioValue, 16);

        }
    }
    return self;
}
- (void)setSignInformationMg:(LSZSignInformationMg *)signInformationMg
{
    for (int i = 0; i<signInformationMg.arrayValue.count; i++) {
        if (i == 0) {
            self.labelFirstValue.text = [NSString stringWithFormat:@"+%@",signInformationMg.arrayValue[0]];
        }else if (i == 1){
            self.labelSecondValue.text = [NSString stringWithFormat:@"+%@",signInformationMg.arrayValue[1]];
        }else if (i == 2){
            self.labelThirdValue.text = [NSString stringWithFormat:@"+%@",signInformationMg.arrayValue[2]];
        }else if (i == 3){
            self.labelFourthValue.text = [NSString stringWithFormat:@"+%@",signInformationMg.arrayValue[3]];
        }else if (i == 4){
            self.labelFifthValue.text = [NSString stringWithFormat:@"+%@",signInformationMg.arrayValue[4]];
        }else if (i == 5){
            self.labelSixthValue.text = [NSString stringWithFormat:@"+%@",signInformationMg.arrayValue[5]];
        }else {
            int a = [signInformationMg.signin_days  intValue];
            if ([signInformationMg.sign isEqualToString:@"1"]&& a>6){
                self.labelSeventhValue.text = [NSString stringWithFormat:@"+%@",signInformationMg.arrayValue[6]];
            }
        }
    }
    NSString * strsignin_days = NullStringjudgment(signInformationMg.signin_days);
    if ([signInformationMg.signin_days isEqualToString:@"0"]||strsignin_days.length == 0||[strsignin_days isEqualToString:@""]) {
        self.imageViewFirstDay.image = [UIImage imageNamed:@"未签到背景"];
        self.imageViewSecondDay.image = [UIImage imageNamed:@"未签到背景"];
        self.imageViewThirdDay.image = [UIImage imageNamed:@"未签到背景"];
        self.imageViewFourthDay.image = [UIImage imageNamed:@"未签到背景"];
        self.imageViewFifthDay.image = [UIImage imageNamed:@"未签到背景"];
        self.imageViewSixthDay.image = [UIImage imageNamed:@"未签到背景"];
        self.imageViewSeventhDay.image = [UIImage imageNamed:@"大礼包"];
        self.labelFirstDay.text = @"第1天";
        self.labelSecondDay.text = @"第2天";
        self.labelThirdDay.text = @"第3天";
        self.labelFourthDay.text = @"第4天";
        self.labelFifthDay.text = @"第5天";
        self.labelSixthDay.text = @"第6天";
        self.labelSeventhDay.text = @"第7天";


        self.labelFirstValue.textColor = redUIColor;
        self.labelSecondValue.textColor = redUIColor;
        self.labelThirdValue.textColor = redUIColor;
        self.labelFourthValue.textColor = redUIColor;
        self.labelFifthValue.textColor = redUIColor;
        self.labelSixthValue.textColor = redUIColor;
        self.labelSeventhValue.textColor = redUIColor;

    }else if ([signInformationMg.signin_days isEqualToString:@"1"]){
        self.imageViewFirstDay.image = [UIImage imageNamed:@"每日签到_已签灰圆"];
        self.imageViewSecondDay.image = [UIImage imageNamed:@"未签到背景"];
        self.imageViewThirdDay.image = [UIImage imageNamed:@"未签到背景"];
        self.imageViewFourthDay.image = [UIImage imageNamed:@"未签到背景"];
        self.imageViewFifthDay.image = [UIImage imageNamed:@"未签到背景"];
        self.imageViewSixthDay.image = [UIImage imageNamed:@"未签到背景"];
        self.imageViewSeventhDay.image = [UIImage imageNamed:@"大礼包"];
        self.labelFirstDay.text = @"已签到";
        self.labelSecondDay.text = @"第2天";
        self.labelThirdDay.text = @"第3天";
        self.labelFourthDay.text = @"第4天";
        self.labelFifthDay.text = @"第5天";
        self.labelSixthDay.text = @"第6天";
        self.labelSeventhDay.text = @"第7天";

        self.labelFirstValue.textColor = lightColor;
        self.labelSecondValue.textColor = redUIColor;
        self.labelThirdValue.textColor = redUIColor;
        self.labelFourthValue.textColor = redUIColor;
        self.labelFifthValue.textColor = redUIColor;
        self.labelSixthValue.textColor = redUIColor;
        self.labelSeventhValue.textColor = redUIColor;

    }else if ([signInformationMg.signin_days isEqualToString:@"2"]){
        self.imageViewFirstDay.image = [UIImage imageNamed:@"每日签到_已签灰圆"];
        self.imageViewSecondDay.image = [UIImage imageNamed:@"每日签到_已签灰圆"];
        self.imageViewThirdDay.image = [UIImage imageNamed:@"未签到背景"];
        self.imageViewFourthDay.image = [UIImage imageNamed:@"未签到背景"];
        self.imageViewFifthDay.image = [UIImage imageNamed:@"未签到背景"];
        self.imageViewSixthDay.image = [UIImage imageNamed:@"未签到背景"];
        self.imageViewSeventhDay.image = [UIImage imageNamed:@"大礼包"];
        self.labelFirstDay.text = @"已签到";
        self.labelSecondDay.text = @"已签到";
        self.labelThirdDay.text = @"第3天";
        self.labelFourthDay.text = @"第4天";
        self.labelFifthDay.text = @"第5天";
        self.labelSixthDay.text = @"第6天";
        self.labelSeventhDay.text = @"第7天";
        self.labelFirstValue.textColor = lightColor;
        self.labelSecondValue.textColor = lightColor;
        self.labelThirdValue.textColor = redUIColor;
        self.labelFourthValue.textColor = redUIColor;
        self.labelFifthValue.textColor = redUIColor;
        self.labelSixthValue.textColor = redUIColor;
        self.labelSeventhValue.textColor = redUIColor;
    }else if ([signInformationMg.signin_days isEqualToString:@"3"]){
        self.imageViewFirstDay.image = [UIImage imageNamed:@"每日签到_已签灰圆"];
        self.imageViewSecondDay.image = [UIImage imageNamed:@"每日签到_已签灰圆"];
        self.imageViewThirdDay.image = [UIImage imageNamed:@"每日签到_已签灰圆"];
        self.imageViewFourthDay.image = [UIImage imageNamed:@"未签到背景"];
        self.imageViewFifthDay.image = [UIImage imageNamed:@"未签到背景"];
        self.imageViewSixthDay.image = [UIImage imageNamed:@"未签到背景"];
        self.imageViewSeventhDay.image = [UIImage imageNamed:@"大礼包"];
        self.labelFirstDay.text = @"已签到";
        self.labelSecondDay.text = @"已签到";
        self.labelThirdDay.text = @"已签到";
        self.labelFourthDay.text = @"第4天";
        self.labelFifthDay.text = @"第5天";
        self.labelSixthDay.text = @"第6天";
        self.labelSeventhDay.text = @"第7天";
        self.labelFirstValue.textColor = lightColor;
        self.labelSecondValue.textColor = lightColor;
        self.labelThirdValue.textColor = lightColor;
        self.labelFourthValue.textColor = redUIColor;
        self.labelFifthValue.textColor = redUIColor;
        self.labelSixthValue.textColor = redUIColor;
        self.labelSeventhValue.textColor = redUIColor;
    }else if ([signInformationMg.signin_days isEqualToString:@"4"]){
        self.imageViewFirstDay.image = [UIImage imageNamed:@"每日签到_已签灰圆"];
        self.imageViewSecondDay.image = [UIImage imageNamed:@"每日签到_已签灰圆"];
        self.imageViewThirdDay.image = [UIImage imageNamed:@"每日签到_已签灰圆"];
        self.imageViewFourthDay.image = [UIImage imageNamed:@"每日签到_已签灰圆"];
        self.imageViewFifthDay.image = [UIImage imageNamed:@"未签到背景"];
        self.imageViewSixthDay.image = [UIImage imageNamed:@"未签到背景"];
        self.imageViewSeventhDay.image = [UIImage imageNamed:@"大礼包"];
        self.labelFirstDay.text = @"已签到";
        self.labelSecondDay.text = @"已签到";
        self.labelThirdDay.text = @"已签到";
        self.labelFourthDay.text = @"已签到";
        self.labelFifthDay.text = @"第5天";
        self.labelSixthDay.text = @"第6天";
        self.labelSeventhDay.text = @"第7天";
        self.labelFirstValue.textColor = lightColor;
        self.labelSecondValue.textColor = lightColor;
        self.labelThirdValue.textColor = lightColor;
        self.labelFourthValue.textColor = lightColor;
        self.labelFifthValue.textColor = redUIColor;
        self.labelSixthValue.textColor = redUIColor;
        self.labelSeventhValue.textColor = redUIColor;
    }else if ([signInformationMg.signin_days isEqualToString:@"5"]){
        self.imageViewFirstDay.image = [UIImage imageNamed:@"每日签到_已签灰圆"];
        self.imageViewSecondDay.image = [UIImage imageNamed:@"每日签到_已签灰圆"];
        self.imageViewThirdDay.image = [UIImage imageNamed:@"每日签到_已签灰圆"];
        self.imageViewFourthDay.image = [UIImage imageNamed:@"每日签到_已签灰圆"];
        self.imageViewFifthDay.image = [UIImage imageNamed:@"每日签到_已签灰圆"];
        self.imageViewSixthDay.image = [UIImage imageNamed:@"未签到背景"];
        self.imageViewSeventhDay.image = [UIImage imageNamed:@"大礼包"];
        self.labelFirstDay.text = @"已签到";
        self.labelSecondDay.text = @"已签到";
        self.labelThirdDay.text = @"已签到";
        self.labelFourthDay.text = @"已签到";
        self.labelFifthDay.text = @"已签到";
        self.labelSixthDay.text = @"第6天";
        self.labelSeventhDay.text = @"第7天";
        self.labelFirstValue.textColor = lightColor;
        self.labelSecondValue.textColor = lightColor;
        self.labelThirdValue.textColor = lightColor;
        self.labelFourthValue.textColor = lightColor;
        self.labelFifthValue.textColor = lightColor;
        self.labelSixthValue.textColor = redUIColor;
        self.labelSeventhValue.textColor = redUIColor;
    }else if ([signInformationMg.signin_days isEqualToString:@"6"]){
        self.imageViewFirstDay.image = [UIImage imageNamed:@"每日签到_已签灰圆"];
        self.imageViewSecondDay.image = [UIImage imageNamed:@"每日签到_已签灰圆"];
        self.imageViewThirdDay.image = [UIImage imageNamed:@"每日签到_已签灰圆"];
        self.imageViewFourthDay.image = [UIImage imageNamed:@"每日签到_已签灰圆"];
        self.imageViewFifthDay.image = [UIImage imageNamed:@"每日签到_已签灰圆"];
        self.imageViewSixthDay.image = [UIImage imageNamed:@"每日签到_已签灰圆"];
        self.imageViewSeventhDay.image = [UIImage imageNamed:@"大礼包"];
        self.labelFirstDay.text = @"已签到";
        self.labelSecondDay.text = @"已签到";
        self.labelThirdDay.text = @"已签到";
        self.labelFourthDay.text = @"已签到";
        self.labelFifthDay.text = @"已签到";
        self.labelSixthDay.text = @"已签到";
        self.labelSeventhDay.text = @"第7天";
        self.labelFirstValue.textColor = lightColor;
        self.labelSecondValue.textColor = lightColor;
        self.labelThirdValue.textColor = lightColor;
        self.labelFourthValue.textColor = lightColor;
        self.labelFifthValue.textColor = lightColor;
        self.labelSixthValue.textColor = lightColor;
        self.labelSeventhValue.textColor = redUIColor;
    }
    else{
        if ([signInformationMg.sign isEqualToString:@"1"]) {//已签
            self.imageViewFirstDay.image = [UIImage imageNamed:@"每日签到_已签灰圆"];
            self.imageViewSecondDay.image = [UIImage imageNamed:@"每日签到_已签灰圆"];
            self.imageViewThirdDay.image = [UIImage imageNamed:@"每日签到_已签灰圆"];
            self.imageViewFourthDay.image = [UIImage imageNamed:@"每日签到_已签灰圆"];
            self.imageViewFifthDay.image = [UIImage imageNamed:@"每日签到_已签灰圆"];
            self.imageViewSixthDay.image = [UIImage imageNamed:@"每日签到_已签灰圆"];
            self.imageViewSeventhDay.image = [UIImage imageNamed:@"每日签到_已签灰圆"];
            self.labelFirstDay.text = @"已签到";
            self.labelSecondDay.text = @"已签到";
            self.labelThirdDay.text = @"已签到";
            self.labelFourthDay.text = @"已签到";
            self.labelFifthDay.text = @"已签到";
            self.labelSixthDay.text = @"已签到";
            self.labelSeventhDay.text = [NSString stringWithFormat:@"第%@天",signInformationMg.signin_days];
            self.labelFirstValue.textColor = lightColor;
            self.labelSecondValue.textColor = lightColor;
            self.labelThirdValue.textColor = lightColor;
            self.labelFourthValue.textColor = lightColor;
            self.labelFifthValue.textColor = lightColor;
            self.labelSixthValue.textColor = lightColor;
            self.labelSeventhValue.textColor = lightColor;
        }else{
            self.imageViewFirstDay.image = [UIImage imageNamed:@"每日签到_已签灰圆"];
            self.imageViewSecondDay.image = [UIImage imageNamed:@"每日签到_已签灰圆"];
            self.imageViewThirdDay.image = [UIImage imageNamed:@"每日签到_已签灰圆"];
            self.imageViewFourthDay.image = [UIImage imageNamed:@"每日签到_已签灰圆"];
            self.imageViewFifthDay.image = [UIImage imageNamed:@"每日签到_已签灰圆"];
            self.imageViewSixthDay.image = [UIImage imageNamed:@"每日签到_已签灰圆"];
            self.imageViewSeventhDay.image = [UIImage imageNamed:@"大礼包"];
            self.labelFirstDay.text = @"已签到";
            self.labelSecondDay.text = @"已签到";
            self.labelThirdDay.text = @"已签到";
            self.labelFourthDay.text = @"已签到";
            self.labelFifthDay.text = @"已签到";
            self.labelSixthDay.text = @"已签到";
           self.labelSeventhDay.text = [NSString stringWithFormat:@"第%@天",signInformationMg.signin_days];
            self.labelFirstValue.textColor = lightColor;
            self.labelSecondValue.textColor = lightColor;
            self.labelThirdValue.textColor = lightColor;
            self.labelFourthValue.textColor = lightColor;
            self.labelFifthValue.textColor = lightColor;
            self.labelSixthValue.textColor = lightColor;
            self.labelSeventhValue.textColor = redUIColor;
        }
    }
}
@end
